<template lang="pug">
.home
  img(alt='Vue logo', src='../assets/logo.png')
  van-checkbox(v-model='checked') 复选框
</template>

<script setup>
// @ is an alias to /src
import { ref, defineComponent, getCurrentInstance } from 'vue'
const { proxy } = getCurrentInstance()
localStorage.setItem('token','Bearer eyJhbGciOiJIUzUxMiJ9.eyJqdGkiOiJjZWExYWYyZTllZWI0MjExODRlOTY3MjM2NDg4NjhjNiIsInVzZXIiOiJvWnBUSzVOZjdLeDgyLTN4bGgzTW5RNURDanNrIiwic3ViIjoib1pwVEs1TmY3S3g4Mi0zeGxoM01uUTVEQ2pzayJ9.DEdHETc-rp2DJ8yjFbHRmAEicYMloYDjY8MJzW4gXCCFkQJqbrZZUHhMPSDggoTYAqYnmVqDYnd9pMqG-IVS2g')
let $api = proxy.$api.home
const checked = ref(true);

const res = ref(await $api.getTemplate({status:1}))
console.log(res._rawValue);
</script>
